package com.exsun.ex1077.app

import com.blankj.utilcode.util.PathUtils

/**
 * 描述：常量
 * 作者：ZhangPing
 * 创建时间：2022/5/13 14:36
 */
class Constant {

    companion object{

        /**
         * 页面类型
         */
        const val PAGE_TYPE_REGISTER_PERSON = 0
        const val PAGE_TYPE_REGISTER_COMPANY = 1
        const val PAGE_TYPE_BOUNDS_ADD = 0
        const val PAGE_TYPE_BOUNDS_PREVIEW = 1
        const val PAGE_TYPE_BOUNDS_UPDATE = 2

        /**
         * 高德地图自定义地图样式文件路径
         */
        val PATH_AMAP_CUSTOM_STYLE_DATA = PathUtils.getExternalAppDataPath() + "/amap/style.data"
        val PATH_AMAP_CUSTOM_STYLE_EXTRA_DATA = PathUtils.getExternalAppDataPath() + "/amap/style_extra.data"

        /**
         * 密码AES加密密钥
         */
        const val PASSWORD_AES_SECRET = "tHisidddEY12568d"

        /**
         * 监管对象类型
         */
        const val OBJECT_TYPE_VEHICLE = 0 //车辆
        const val OBJECT_TYPE_SHIP = 1 //船舶
        const val OBJECT_TYPE_PERSON = 2 //人员
        const val OBJECT_TYPE_OBJECT = 3 //物品
        const val OBJECT_TYPE_ANIMAL = 4 //动物
        const val OBJECT_TYPE_OTHER = 5 //其他

        /**
         * 车辆状态
         */
        const val ONLINE_STATUS_RUN = 0 //行驶
        const val ONLINE_STATUS_STOP = 1 //停车
        const val ONLINE_STATUS_FLAMEOUT = 2 //熄火
        const val ONLINE_STATUS_LOCATION_FAIL = 3 //定位失败
        const val ONLINE_STATUS_OFFLINE = 4 //通讯中断
        const val ONLINE_STATUS_NOT_LOCATION = 5 //未定位
        const val ONLINE_STATUS_ONLINE = 6 //在线

        /**
         * 地图图例状态类型
         */
        const val MAP_STATUS_ALL = 0
        const val MAP_STATUS_ONLINE = 1
        const val MAP_STATUS_OFFLINE = 2
        const val MAP_STATUS_CUSTOM = 3

        /**
         * 围栏类型
         */
        const val BOUNDS_TYPE_CIRCLE = 0 //圆
        const val BOUNDS_TYPE_RECTANGLE = 1 //矩形
        const val BOUNDS_TYPE_POLYGON = 2 //多边形
        const val BOUNDS_TYPE_LINE = 3  //线
        const val BOUNDS_TYPE_POINT = 4 //点

        /**
         * 搜索类型
         */
        const val SEARCH_TYPE_MAP = 0 //地图搜索
        const val SEARCH_TYPE_DEVICE_OBJECT = 1 //设备管理监管对象
        const val SEARCH_TYPE_DEVICE_PERSON = 2 //设备管理负责人

        /**
         * 设备管理类型
         */
        const val DEVICE_MANAGE_ADD = 0 //新增
        const val DEVICE_MANAGE_UPDATE = 1 //编辑

        /**
         * 日志模块
         */
        const val LOG_MODULE_DEVICE = "APP设备管理"
        const val LOG_MODULE_BOUNDS = "APP电子围栏"

        /**
         * 日志操作
         */
        const val LOG_OPERATION_ADD = "新增"
        const val LOG_OPERATION_UPDATE = "编辑"
        const val LOG_OPERATION_DELETE = "删除"
        const val LOG_OPERATION_RENAME = "重命名"
    }

}